Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh wallet balance more regularly. #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dowlandaiello
Copy link
Collaborator

Currently, there is a bug in Osmosis trades which causes transactions to fail to execute, due to the wallet balance being lower than the execution plan specifies. The only explanation for this is that the execution plan is being created with a stale starting amount (wallet balance). One possible explanation for this behavior is rebalancing in between wallet balance fetching and route evaluation. This PR refreshes the wallet balance after rebalancing to remedy this issue.

Note: This will not fix the underlying issue - wallet funds getting stuck somewhere before the trade is executed. Further testing will be done to verify the source of this behavior.

@dowlandaiello dowlandaiello self-assigned this Oct 3, 2024
@dowlandaiello dowlandaiello added the bug Something isn't working label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants